#!/usr/bin/python
try:
    file = open('foo1.txt','r')
except Exception as e:
    print(e)


# 抛出异常
def functionName(name):
    if not name:
        raise Exception('name not empty')
    print(name)


# functionName('')




